package com.example.offer.no0012;

import java.util.Arrays;

import com.example.offer.no0012.impl.SolutionImpl;

/**
 * 解答测试-矩阵中的路径
 *
 * @author yumuhui
 */
public class SolutionTest {

    static char[][] board = {
            {'A', 'B', 'C', 'E'},
            {'S', 'F', 'C', 'S'},
            {'A', 'D', 'E', 'E'}
    };

    static String word = "BCCED";

    public static void main(String[] a1rgs) {

        System.out.println("输入数组为: " + Arrays.toString(board));

        Solution solution = new SolutionImpl();

        System.out.println(solution.exist(board, word));
    }
}
